package aos.ydksxt.dao;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

/**
 * Created by Stiofan on 2017/1/17.
 */
@Entity
@Table(name = "DJ_TDSYQDJXX")
public class DjTdsyqdjxx {
    private String tdsyquuid;
    private BigDecimal djxh;
    private String tdbh;
    private String tdsyrlxDm;
    private String tdsyqlxDm;
    private Date tdsyqQsrq;
    private Date tdsyqZzrq;
    private String lrrDm;
    private Timestamp lrrq;
    private String xgrDm;
    private Timestamp xgrq;
    private String sjgsdq;
    private String yxbz;
    private String zfrDm;
    private Timestamp zfrq;
    private String zfyy;
    private String tdsyqZsbh;
    private Date tdsyqQdrq;
    private BigDecimal tdsyqYsmj;
    private BigDecimal tdsyqMsmj;
    private BigDecimal tdsyqYsje;
    private BigDecimal tdsyqMsje;

    @Id
    @Column(name = "TDSYQUUID", nullable = false, length = 32)
    public String getTdsyquuid() {
        return tdsyquuid;
    }

    public void setTdsyquuid(String tdsyquuid) {
        this.tdsyquuid = tdsyquuid;
    }

    @Basic
    @Column(name = "DJXH", nullable = false, precision = 0)
    public BigDecimal getDjxh() {
        return djxh;
    }

    public void setDjxh(BigDecimal djxh) {
        this.djxh = djxh;
    }

    @Basic
    @Column(name = "TDBH", nullable = false, length = 32)
    public String getTdbh() {
        return tdbh;
    }

    public void setTdbh(String tdbh) {
        this.tdbh = tdbh;
    }

    @Basic
    @Column(name = "TDSYRLX_DM", nullable = true, length = 2)
    public String getTdsyrlxDm() {
        return tdsyrlxDm;
    }

    public void setTdsyrlxDm(String tdsyrlxDm) {
        this.tdsyrlxDm = tdsyrlxDm;
    }

    @Basic
    @Column(name = "TDSYQLX_DM", nullable = true, length = 2)
    public String getTdsyqlxDm() {
        return tdsyqlxDm;
    }

    public void setTdsyqlxDm(String tdsyqlxDm) {
        this.tdsyqlxDm = tdsyqlxDm;
    }

    @Basic
    @Column(name = "TDSYQ_QSRQ", nullable = true)
    public Date getTdsyqQsrq() {
        return tdsyqQsrq;
    }

    public void setTdsyqQsrq(Date tdsyqQsrq) {
        this.tdsyqQsrq = tdsyqQsrq;
    }

    @Basic
    @Column(name = "TDSYQ_ZZRQ", nullable = true)
    public Date getTdsyqZzrq() {
        return tdsyqZzrq;
    }

    public void setTdsyqZzrq(Date tdsyqZzrq) {
        this.tdsyqZzrq = tdsyqZzrq;
    }

    @Basic
    @Column(name = "LRR_DM", nullable = true, length = 11)
    public String getLrrDm() {
        return lrrDm;
    }

    public void setLrrDm(String lrrDm) {
        this.lrrDm = lrrDm;
    }

    @Basic
    @Column(name = "LRRQ", nullable = true)
    public Timestamp getLrrq() {
        return lrrq;
    }

    public void setLrrq(Timestamp lrrq) {
        this.lrrq = lrrq;
    }

    @Basic
    @Column(name = "XGR_DM", nullable = true, length = 11)
    public String getXgrDm() {
        return xgrDm;
    }

    public void setXgrDm(String xgrDm) {
        this.xgrDm = xgrDm;
    }

    @Basic
    @Column(name = "XGRQ", nullable = true)
    public Timestamp getXgrq() {
        return xgrq;
    }

    public void setXgrq(Timestamp xgrq) {
        this.xgrq = xgrq;
    }

    @Basic
    @Column(name = "SJGSDQ", nullable = true, length = 11)
    public String getSjgsdq() {
        return sjgsdq;
    }

    public void setSjgsdq(String sjgsdq) {
        this.sjgsdq = sjgsdq;
    }

    @Basic
    @Column(name = "YXBZ", nullable = true, length = 1)
    public String getYxbz() {
        return yxbz;
    }

    public void setYxbz(String yxbz) {
        this.yxbz = yxbz;
    }

    @Basic
    @Column(name = "ZFR_DM", nullable = true, length = 11)
    public String getZfrDm() {
        return zfrDm;
    }

    public void setZfrDm(String zfrDm) {
        this.zfrDm = zfrDm;
    }

    @Basic
    @Column(name = "ZFRQ", nullable = true)
    public Timestamp getZfrq() {
        return zfrq;
    }

    public void setZfrq(Timestamp zfrq) {
        this.zfrq = zfrq;
    }

    @Basic
    @Column(name = "ZFYY", nullable = true, length = 300)
    public String getZfyy() {
        return zfyy;
    }

    public void setZfyy(String zfyy) {
        this.zfyy = zfyy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DjTdsyqdjxx that = (DjTdsyqdjxx) o;

        if (tdsyquuid != null ? !tdsyquuid.equals(that.tdsyquuid) : that.tdsyquuid != null) return false;
        if (djxh != null ? !djxh.equals(that.djxh) : that.djxh != null) return false;
        if (tdbh != null ? !tdbh.equals(that.tdbh) : that.tdbh != null) return false;
        if (tdsyrlxDm != null ? !tdsyrlxDm.equals(that.tdsyrlxDm) : that.tdsyrlxDm != null) return false;
        if (tdsyqlxDm != null ? !tdsyqlxDm.equals(that.tdsyqlxDm) : that.tdsyqlxDm != null) return false;
        if (tdsyqQsrq != null ? !tdsyqQsrq.equals(that.tdsyqQsrq) : that.tdsyqQsrq != null) return false;
        if (tdsyqZzrq != null ? !tdsyqZzrq.equals(that.tdsyqZzrq) : that.tdsyqZzrq != null) return false;
        if (lrrDm != null ? !lrrDm.equals(that.lrrDm) : that.lrrDm != null) return false;
        if (lrrq != null ? !lrrq.equals(that.lrrq) : that.lrrq != null) return false;
        if (xgrDm != null ? !xgrDm.equals(that.xgrDm) : that.xgrDm != null) return false;
        if (xgrq != null ? !xgrq.equals(that.xgrq) : that.xgrq != null) return false;
        if (sjgsdq != null ? !sjgsdq.equals(that.sjgsdq) : that.sjgsdq != null) return false;
        if (yxbz != null ? !yxbz.equals(that.yxbz) : that.yxbz != null) return false;
        if (zfrDm != null ? !zfrDm.equals(that.zfrDm) : that.zfrDm != null) return false;
        if (zfrq != null ? !zfrq.equals(that.zfrq) : that.zfrq != null) return false;
        if (zfyy != null ? !zfyy.equals(that.zfyy) : that.zfyy != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = tdsyquuid != null ? tdsyquuid.hashCode() : 0;
        result = 31 * result + (djxh != null ? djxh.hashCode() : 0);
        result = 31 * result + (tdbh != null ? tdbh.hashCode() : 0);
        result = 31 * result + (tdsyrlxDm != null ? tdsyrlxDm.hashCode() : 0);
        result = 31 * result + (tdsyqlxDm != null ? tdsyqlxDm.hashCode() : 0);
        result = 31 * result + (tdsyqQsrq != null ? tdsyqQsrq.hashCode() : 0);
        result = 31 * result + (tdsyqZzrq != null ? tdsyqZzrq.hashCode() : 0);
        result = 31 * result + (lrrDm != null ? lrrDm.hashCode() : 0);
        result = 31 * result + (lrrq != null ? lrrq.hashCode() : 0);
        result = 31 * result + (xgrDm != null ? xgrDm.hashCode() : 0);
        result = 31 * result + (xgrq != null ? xgrq.hashCode() : 0);
        result = 31 * result + (sjgsdq != null ? sjgsdq.hashCode() : 0);
        result = 31 * result + (yxbz != null ? yxbz.hashCode() : 0);
        result = 31 * result + (zfrDm != null ? zfrDm.hashCode() : 0);
        result = 31 * result + (zfrq != null ? zfrq.hashCode() : 0);
        result = 31 * result + (zfyy != null ? zfyy.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "TDSYQ_ZSBH", nullable = true, length = 100)
    public String getTdsyqZsbh() {
        return tdsyqZsbh;
    }

    public void setTdsyqZsbh(String tdsyqZsbh) {
        this.tdsyqZsbh = tdsyqZsbh;
    }

    @Basic
    @Column(name = "TDSYQ_QDRQ", nullable = true)
    public Date getTdsyqQdrq() {
        return tdsyqQdrq;
    }

    public void setTdsyqQdrq(Date tdsyqQdrq) {
        this.tdsyqQdrq = tdsyqQdrq;
    }

    @Basic
    @Column(name = "TDSYQ_YSMJ", nullable = true, precision = 2)
    public BigDecimal getTdsyqYsmj() {
        return tdsyqYsmj;
    }

    public void setTdsyqYsmj(BigDecimal tdsyqYsmj) {
        this.tdsyqYsmj = tdsyqYsmj;
    }

    @Basic
    @Column(name = "TDSYQ_MSMJ", nullable = true, precision = 2)
    public BigDecimal getTdsyqMsmj() {
        return tdsyqMsmj;
    }

    public void setTdsyqMsmj(BigDecimal tdsyqMsmj) {
        this.tdsyqMsmj = tdsyqMsmj;
    }

    @Basic
    @Column(name = "TDSYQ_YSJE", nullable = true, precision = 2)
    public BigDecimal getTdsyqYsje() {
        return tdsyqYsje;
    }

    public void setTdsyqYsje(BigDecimal tdsyqYsje) {
        this.tdsyqYsje = tdsyqYsje;
    }

    @Basic
    @Column(name = "TDSYQ_MSJE", nullable = true, precision = 2)
    public BigDecimal getTdsyqMsje() {
        return tdsyqMsje;
    }

    public void setTdsyqMsje(BigDecimal tdsyqMsje) {
        this.tdsyqMsje = tdsyqMsje;
    }
}
